# -*- coding: utf-8 -*-


t = np.arange(0., 5., 0.2)

line, = plt.plot(t,t,'-',linewidth=5.0)
line.set_antialiased(True) #关闭抗锯齿像素


# use keyword args
plt.setp(line, color='r', linewidth=2.0)
# or MATLAB style string value pairs
plt.setp(line, 'color', 'r', 'linewidth', 100.0)